package com.zhuoyue.system.domain.po;

import com.zhuoyue.common.core.domain.BaseEntity;
import com.zhuoyue.system.domain.dto.RoomPoReqDTO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author wjming
 */
@Data
public class TblRoomPo extends BaseEntity {
    private Integer pageNum;
    private Integer pageSize;
    private String name;
    private String account;

    private String homeName;
    private String organizationCode;
    private Long deptId;

    /**
     * 房间信息请求信息转化为数据层对象
     *
     * @param roomPoReq
     * @return
     */
    public TblRoomPo dtoToDo(RoomPoReqDTO roomPoReq) {
        BeanUtils.copyProperties(roomPoReq, this);
        return this;
    }
}
